import React from 'react';
import APIShowTableSingle from './APIShowTableSingle';

export default class ApiShowTale extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
    };
  }

    render = () => (
      <div style={{ clear: 'both' }}>
        {this.getBase()}
      </div>
    )
    getBase() {
      const { tableList, subList } = this.props;
      const show = [];
      tableList.map((table,index) => {
        show.push(
          <APIShowTableSingle ecId={`${this && this.props && this.props.ecId || ''}_APIShowTableSingle@pzmawu@${index}`} table={table} subList={subList} />,
        );
      });
      return show;
    }
}
